
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/bootstrap/css/bootstrap-responsive.min.css" />
    <script src="<%=basePath%>/jquery/jquery-3.6.0.js" type="text/javascript"></script>
    <script src="<%=basePath%>/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>

<form class="form-horizontal" action="/healmyself/record?method=insert" method="post">
    <div class="control-group">
        <label class="control-label" for="inputMedicine">药品名</label>
        <div class="controls">
            <input type="text" name="medicine"
                   id="inputMedicine" placeholder="medicine">
        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="inputDosage">剂量</label>
        <div class="controls">
            <input type="number" name="dosage"
                   id="inputDosage" placeholder="dosage">
        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="inputTime">时间</label>
        <div class="controls">
            <input type="datetime-local" name="time"
                   id="inputTime" placeholder="Time">
        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="inputFeelings">心情</label>
        <div class="controls">
<%--            <input type="text" name="feelings"--%>
<%--                   id="inputFeelings" placeholder="Feelings">--%>

            <textarea class="form-control" rows="3" id="inputFeelings" name="feelings"></textarea>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label" for="inputPlace">地点</label>
        <div class="controls">
            <input type="text" name="place"
                   id="inputPlace" placeholder="Place">
        </div>
    </div>

    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn">完 成</button>
        </div>
    </div>
</form>
</body>
</html>
